import request from "@/utils/request"

export function getAllUser() {
  return request({
    url: "/userManage/user/getAllUser",
    method: "get"
  })
}

export function getUserListByPage(params: any) {
  return request({
    params,
    url: "/userManage/user/getUserListByPage",
    method: "get"
  })
}

export function getInfoById(params: any) {
  return request({
    params,
    url: "/userManage/user/getInfoById",
    method: "get"
  })
}

export function addUser(data: any) {
  return request({
    data,
    url: "/userManage/user/addUser",
    method: "post"
  })
}

export function editUser(data: any) {
  return request({
    data,
    url: "/userManage/user/editUser",
    method: "post"
  })
}

export function deleteUser(params: any) {
  return request({
    params,
    url: "/userManage/user/delete",
    method: "delete"
  })
}
